package com.example.coupon.dao;

import com.example.coupon.constant.CouponStatus;
import com.example.coupon.entity.Coupon;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Coupon Dao接口定义
 * @author wangbo
 * @description:
 * @date 2021/2/1910:06
 */
public interface CouponDao extends JpaRepository<Coupon,Integer> {

    List<Coupon> findAllByUserIdAndStatus(Long userId, CouponStatus status);
}
